#include <stdio.h>
#include <stdlib.h>
struct fs
{
    double x;
    double y;
};
int main()
{
    struct fs s1,s2;
    scanf("%lf %lf",&s1.x,&s1.y);
    scanf("%lf %lf",&s2.x,&s2.y);
    printf("%.2lf %.2lf",(s1.x*s2.x)-(s1.y*s2.y),s1.x*s2.y+s1.y*s2.x);
    return 0;
}
